<?php
include_once __DIR__ . '/../autoload.php';
// include_once dirname(dirname(__FILE__)) . '/clases/class_carrito.php';
// include_once dirname(dirname(__FILE__)) . '/filtro_usuario.php';
include_once dirname(dirname(__FILE__)) . '/funciones/funcionescarrito.php';
// include_once dirname(dirname(__FILE__)) . '/funciones/basicas.php';
use carrito\Carrito;
use utiles\SessionUtil;
SessionUtil::start();
SessionUtil::isLogged();


if(isset($_GET['linea']))
{
   
   $_SESSION["carritoNotaVenta"]->elimina_producto($_GET['linea']);

}
?>
<html>
<head>
<?php include_once __DIR__ . '/../header.php'; ?>
</head>
<body>
<?php imprime_carrito($_SESSION["carritoNotaVenta"]); ?>
</body>
</html>
